package com.youhome.service.service;

import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.exceptions.ServerException;
import com.youhome.common.exception.CustomException;
import com.youhome.service.model.Principal;
import com.youhome.service.response.Mail;

import java.util.List;

/**
 * Created by chen365 on 2017/12/7.
 */
public interface MailService {

    int SingleSendMail(Long userid, String accountName, String fromAlias, List<Mail> mails, String subject, String htmlBody) throws ServerException,ClientException;
    int SingleSendMail(Long userid, String accountName, String fromAlias, String mails, String subject, String htmlBody) throws ServerException,ClientException;
    int SingleSendMail(Long userId, String accountName, String companyName, List<Mail> mails, Long tempId) throws ServerException,ClientException;

    void sendMail(Principal principal, Long tempId, String mails) throws CustomException;
}
